<?php

/**
 * Observationdepthattribute form.
 *
 * @package    Redsea20
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ObservationdepthattributeForm extends BaseObservationdepthattributeForm
{
  public function configure()
  {
      unset($this['unitid'], $this['remarks']);

      $this->widgetSchema['attributevalue'] = new sfWidgetFormInputText();
      $this->widgetSchema['observationdepthid'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['attributeid'] = new sfWidgetFormDoctrineChoice(array(
                  'model' => $this->getRelatedModelName('Attribute'),
                  'add_empty' => false,
                  'order_by' => array('attributename', 'asc'))
              );
      $this->widgetSchema['unitid'] = new sfWidgetFormInputHidden();
  }
}
